import { request } from "@ruifox-cms/utils";

// 非权限站点信息获取
export function getSiteInit() {
  return request({
    url: "/auth/setting/siteInit",
    method: "get",
  });
}

//获取系统配置
export function pagingConfig(data) {
  return request({
    baseURL: "/10101_api",
    url: `/oltes/api/v1/system/config/paging`,
    method: "post",
    data
  });
}

//更新系统配置
export function saveConfig(data) {
  return request({
    baseURL: "/10101_api",
    url: "/oltes/api/v1/system/config/save",
    method: "post",
    data,
  });
}

//获取当前功能设置

export function selectfunction() {
  return request({
    baseURL: "/10101_api",
    url: `/comment/api/function/select`,
    method: "get",
  });
}
// 更新功能设置
export function updateFunction(data) {
  return request({
    baseURL: "/10101_api",
    url: "/comment/api/function/update",
    method: "post",
    data,
  });
}
